home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-01-24 | 1.8 KB | 92 lines | [TEXT/MPS ] |
- ;
- ; File: ShutDown.a
- ;
- ; Contains: Shutdown Manager Interfaces.
- ;
- ; Version: Technology: System 7.5
- ; Package: Universal Interfaces 2.2 in “MPW” on ETO #20
- ;
- ; Copyright: © 1984-1995 by Apple Computer, Inc.
- ; All rights reserved.
- ;
- ; Bugs?: If you find a problem with this file, use the Apple Bug Reporter
- ; stack. Include the file and version information (from above)
- ; in the problem description and send to:
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
-
- IF &TYPE('__SHUTDOWN__') = 'UNDEFINED' THEN
- __SHUTDOWN__ SET 1
-
-
- IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
- include 'Types.a'
- ENDIF
- ; include 'ConditionalMacros.a' ;
-
- IF &TYPE('__MIXEDMODE__') = 'UNDEFINED' THEN
- include 'MixedMode.a'
- ENDIF
-
- sdOnPowerOff EQU 1 ;call procedure before power off.
- sdOnRestart EQU 2 ;call procedure before restart.
- sdOnUnmount EQU 4 ;call procedure before unmounting.
- sdOnDrivers EQU 8 ;call procedure before closing drivers.
- sdRestartOrPower EQU 3 ;call before either power off or restart.
-
- ;
- ; pascal void ShutDwnPower(void)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _ShutDwnPower
- move.w #$0001,-(sp)
- dc.w $A895
- EndM
- ELSE
- IMPORT_CFM_FUNCTION ShutDwnPower
- ENDIF
-
- ;
- ; pascal void ShutDwnStart(void)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _ShutDwnStart
- move.w #$0002,-(sp)
- dc.w $A895
- EndM
- ELSE
- IMPORT_CFM_FUNCTION ShutDwnStart
- ENDIF
-
- ;
- ; pascal void ShutDwnInstall(ShutDwnUPP shutDownProc, short flags)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _ShutDwnInstall
- move.w #$0003,-(sp)
- dc.w $A895
- EndM
- ELSE
- IMPORT_CFM_FUNCTION ShutDwnInstall
- ENDIF
-
- ;
- ; pascal void ShutDwnRemove(ShutDwnUPP shutDownProc)
- ;
- IF ¬ GENERATINGCFM THEN
- Macro
- _ShutDwnRemove
- move.w #$0004,-(sp)
- dc.w $A895
- EndM
- ELSE
- IMPORT_CFM_FUNCTION ShutDwnRemove
- ENDIF
-
- ENDIF ; __SHUTDOWN__
-